#include <System.h>
#include <fstream>
#include <openssl/OpenSSL.h>
using namespace sys;

int main(int argc, char const* argv[]) {
    // if (argc < 2) {
    //     System::out << "Using fileHash [file path]" << std::endl;
    //     return 0;
    // }
    auto filePath = "D:/SGA/Videos/NarakaBladepoint/Record/Naraka-record-20231213-16-43-47.mp4";
    try {
        // auto hash = openssl::GetFileHash("D:/SGA/Videos/LoginVideo.mp4", openssl::Algorithm::MD5);
        auto hash = openssl::Hash(std::ifstream(filePath, std::ios::binary), openssl::Algorithm::MD5);
        System::out << hash << std::endl;
    }
    catch (const std::exception& e) {
        System::err << e.what() << std::endl;
    }
    return 0;
}
